package com.sean.common.utils;

import java.util.HashMap;
import java.util.Map;

import com.google.gson.Gson;

public class JsonUtils {
	
	public static Map<String, Object> getObject(String jsonStr) {
		return (new Gson()).fromJson(jsonStr, HashMap.class);
	}
	
	public static String getJson(Object jsonObj) {
		return (new Gson()).toJson(jsonObj);
	}
}
